<template>
	<!-- 调用HomeHeader组件的标签形式 -->
	<home-header></home-header>
	<home-swipers :swiperList='swiperList'></home-swipers>
	<home-icons :IconsList='IconsList'></home-icons>
	<home-Location ></home-Location>
	<home-activity></home-activity>
	<home-hot :hotkk='hotkk'></home-hot>
	<home-cnxh :hotList='hotList'></home-cnxh>
	<home-zmqn :weekList='weekList'></home-zmqn>
	<home-foot></home-foot>
</template>

<script>
	//引入组件
	import HomeHeader from './pages/Header'
	import HomeIcons from './pages/Icons'
	import HomeSwipers from './pages/Swipers'
	import HomeLocation from './pages/Location'
	import HomeActivity from './pages/Activity'
	import HomeHot from './pages/Hot'
	import HomeCnxh from './pages/Cnxh'
	import HomeZmqn from './pages/Zmqn'
	import HomeFoot from './pages/Foot'
    import axios from 'axios'
	//导出调用组件
	export default {
		components: {
			HomeHeader,
			HomeIcons,
			HomeSwipers,
			HomeLocation,
			HomeActivity,
			HomeHot,
            HomeCnxh,
			HomeZmqn,
			HomeFoot

		},
		data(){
			return{
				swiperList:[],
				hotList:[],
				IconsList:[],
				hotkk:[],
				weekList:[],
			}
		},
		mounted(){
			axios.get('./dataHome.json').then((res)=>{
				// console.log(res)
				const msg=res.data.data[0];
				this.swiperList=msg.swiperList;
				this.hotList = msg.hotList;
				this.IconsList=msg.IconsList;
				this.hotkk=msg.hotkk;
				this.weekList=msg.weekList;
				// console.log(this.likeList)
			})
		}
	}
</script>

<style>
</style>
